package com.lucy.disk.params;

import com.lucy.disk.validator.DirCheck;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author kindear
 */
@Data
@ApiModel(value = "文件上传参数")
public class FileUploadParams {

    @DirCheck
    @ApiModelProperty("目录ID")
    private String dirId;


    @NotBlank(message = "文件名不可为空")
    @ApiModelProperty("文件名")
    private String fileName;


    @ApiModelProperty("文件")
    private MultipartFile file;
}
